package net.huashitong.msgboard.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import com.sirdc.modules.sys.service.SysTableService;
import net.huashitong.goodsclass.entity.GoodsClasses;
import net.huashitong.goodsclass.filter.GoodsClassFilter;
import net.huashitong.msgboard.dao.MsgBoardDao;
import net.huashitong.msgboard.entity.MsgBoard;
import net.huashitong.msgboard.filter.MsgBoardFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MsgBoardService extends StringPKService<MsgBoard> {
    @Autowired
    private SysTableService tableService;
    @Autowired
    private MsgBoardDao dao;
    @Override
    protected BaseDao<MsgBoard, String> getDao() {
        return dao;
    }

    public List<MsgBoard> queryPageList(MsgBoardFilter filter)
    {
        List<MsgBoard> query = dao.query(filter);
        return query;
    }


}
